package com.salmon.weixin.controller;


import com.salmon.weixin.utils.CheckUtil;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class WeiXinController {

    @GetMapping("/wx/server/config")
    public String weixinServerConfig(String signature,String timestamp,String nonce,String echostr) {
		if(CheckUtil.checkSignature(signature, timestamp, nonce)) {
            return echostr;
        }
        return "";
    }
}
